<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);

String outPatientVisitInfoJson= (String)request.getAttribute("outPatientVisitInfoJson");
String success= (String)request.getAttribute("success");
%>
<link href="${basePath}/static/css/Pigeonhole/Pigeonhole_list.css"
	rel="stylesheet" type="text/css">
<link rel="stylesheet"
	href="${basePath}/static/css/medicalRecord_Search/medicalSearch.css" />
<script type="text/javascript"
	src="${basePath}/static/publics/assets/jqPaginator/jqPaginator.js"></script>
	<script type="text/javascript" src="${basePath}assets/js/echarts.js"></script>
<div class="list_NR">
	<div class="loc">
		<h3>统计报告</h3>
		<ul class="loc_loc">全院手术数位
		</ul>
	</div>

	<div class="list_con_table">
	
	<form id="infoListForm">
<table style="cellpadding="0" cellspacing="0" id="table">
<tbody>
	<tr>
		<td colspan="6" style="text-align:right;">
			<input type="button" value="导出" class="btn"  onclick="exportOperationTop20Word()"/>
			<input type="button" value="保存" class="btn"  onclick="saveOperationTop20()"/>
		</td>
	</tr>
	
	
	
			<tr>
				<td class="tdLabel_7 " style="width:15%">全院手术总数</td>
				<td class="tdLabel_8">
					<input type="text" class="input_box" style="width:100%"  value="${opsTop20Info.opsTotalCount}"    title='' />
				</td>
				<td class="tdLabel_7"  style="width:15%">前20顺位手术总数</td>
				<td class="tdLabel_8">
					<input type="text" class="input_box"  style="width:100%"  value="${opsTop20Info.opsTop20TotalCount}" />	
				</td>

			
	
				
				<td class="tdLabel_7"  style="width:15%">前20顺位占比</td>
				<td class="tdLabel_8">
					<input type="text" class="input_box" style="width:100%"  value="${opsTop20Info.opsTop20Rate}" />
				</td>
				
				</tr>
				
	
	  
			
			<tr>
			   <td class="tdLabel_7">文本</td>
				
			
				<td class="tdLabel_8" colspan="8">
					<textarea style="width:99%;height:150px" name="operationTop20Text">${opsTop20Info.operationTop20Text}</textarea>
				</td>
			</tr>
			
		    <tr>
			   <td class="tdLabel_7">说明</td>
				
			
				<td class="tdLabel_8" colspan="8">
					<textarea style="width:99%;height:150px" id="note" name="note">${opsTop20Info.note}</textarea>
				</td>
			</tr>
			
			 
			<tr>
				<td class="tdLabel_8" colspan="6">
					<table style="margin:0 auto; float:left; border-collapse:collapse;" cellpadding="0" cellspacing="0">
					    <tr>
							 <td colspan="8" style="text-align:center;font-size:16px;">
									${statisticalReportParam.statics1Name}出院患者手术顺位
							</td>
						</tr>
     		 			<tr>
     		 			 <td class="tdLabel_4" width="10%">顺位</td>
     		 			 <td class="tdLabel_4" width="10%">编码</td>
      					 <td class="tdLabel_4" width="15%">名称</td>
      					 <td class="tdLabel_4" width="10%">数量</td>
      					 <td class="tdLabel_4" width="10%">构成比</td>
      					 <td class="tdLabel_4" width="10%">死亡例数</td>
      					 <td class="tdLabel_4" width="10%">平均住院天数</td>
      					 <td class="tdLabel_4" width="15%">人均住院天数</td>
      					</tr>
      					
      					<c:forEach var="obj"   items="${opsTop20Info.topOrderRecords}">
      					<tr>
     		 			 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.topOrder}"/></td>
     		 			 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagCode}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagName}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagNum}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagNumRate}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.deathNum}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.avgInHospDays}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.avgCostFee}"/></td>
      					</tr>
      					</c:forEach>
      				
     					
   
     				</table>
				</td>
			</tr>
			
			
			<tr>
				<td class="tdLabel_8" colspan="6">
					<table style="margin:0 auto; float:left; border-collapse:collapse;" cellpadding="0" cellspacing="0">
					    <tr>
							 <td colspan="8" style="text-align:center;font-size:16px;">
									${statisticalReportParam.statics2Name}出院患者手术顺位
							</td>
						</tr>
     		 			<tr>
     		 			 <td class="tdLabel_4" width="10%">顺位</td>
     		 			 <td class="tdLabel_4" width="10%">编码</td>
      					 <td class="tdLabel_4" width="15%">名称</td>
      					 <td class="tdLabel_4" width="10%">数量</td>
      					 <td class="tdLabel_4" width="10%">构成比</td>
      					 <td class="tdLabel_4" width="10%">死亡例数</td>
      					 <td class="tdLabel_4" width="10%">平均住院天数</td>
      					 <td class="tdLabel_4" width="15%">人均住院天数</td>
      					</tr>
      					
      					<c:forEach var="obj"   items="${opsTop20Info.preMonthTopOrderRecords}">
      					<tr>
     		 			 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.topOrder}"/></td>
     		 			 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagCode}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagName}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagNum}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagNumRate}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.deathNum}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.avgInHospDays}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.avgCostFee}"/></td>
      					</tr>
      					</c:forEach>
      				
     					
   
     				</table>
				</td>
			</tr>
			
			
			
			
			<tr>
				<td class="tdLabel_8" colspan="6">
					<table style="margin:0 auto; float:left; border-collapse:collapse;" cellpadding="0" cellspacing="0">
					    <tr>
							 <td colspan="8" style="text-align:center;font-size:16px;">
									${statisticalReportParam.statics3Name}出院患者手术顺位
							</td>
						</tr>
     		 			<tr>
     		 			 <td class="tdLabel_4" width="10%">顺位</td>
     		 			 <td class="tdLabel_4" width="10%">编码</td>
      					 <td class="tdLabel_4" width="15%">名称</td>
      					 <td class="tdLabel_4" width="10%">数量</td>
      					 <td class="tdLabel_4" width="10%">构成比</td>
      					 <td class="tdLabel_4" width="10%">死亡例数</td>
      					 <td class="tdLabel_4" width="10%">平均住院天数</td>
      					 <td class="tdLabel_4" width="15%">人均住院天数</td>
      					</tr>
      					
      					<c:forEach var="obj"   items="${opsTop20Info.lastYearTopOrderRecords}">
      					<tr>
     		 			 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.topOrder}"/></td>
     		 			 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagCode}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagName}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagNum}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.diagNumRate}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.deathNum}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.avgInHospDays}"/></td>
      					 <td class="tdLabel_8" ><input class="input_box" type="text" style="width:100%" value="${obj.avgCostFee}"/></td>
      					</tr>
      					</c:forEach>
      				
     					
   
     				</table>
				</td>
			</tr>
			
			
			
			
		
			

			
		</tbody>
</table>
	
	
</form>
</div>
</div>
	





<script>
function exportOperationTop20Word (){
	window.location.href="${basePath}/report/exportOperationTop20Word";
}

 //保存
 function saveOperationTop20(){
    var note = $("#note").val();
    
    $.ajax({
        type:"post",
        data:{note:note},
        url:"${basePath}/report/saveWholeHospitaSurgicalSequence",
        success:function(data){
        	layer.alert(data.msg,{icon:1});
        }
    })
    

 }




</script>